[ToC] [Up] [Back] [Next] ... [Book Plug] The Information Commons
.................... Introduction to HTML

3.1 BASE

This element is used to record the URL of the document itself. This is useful if the document is moved away from its original URL and the related documents, in which case partial URLs, which are calculated relative to the new URL of the document, become invalid. If BASE is specified, partial URLs within the document are treated as relative to the BASE address.


WARNING
This can be a problem with ISINDEX queries, since some browsers will use the BASE URL to determine where to send the ISINDEX query data, and some will use the actual URL used to obtain the document.

If the BASE element is absent the document viewer assumes the base URL to be one used to access the document.

3.1.1 Example of Use

<HEAD>
  <BASE HREF="http://www.blob.dirt.edu/stuff/junk/file.html">
  ... 
</HEAD>

[ToC] [Up] [Back] [Next] ... [Book Plug] .................... Introduction to HTML

© Ian Graham 1994-1995 Page Last Updated: 4 December 1995